<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::rule("/","Index/index");
Route::rule("/generate_project/:project_id","Index/generate");
Route::rule("/add_project","Index/add");
Route::get("/edit_project/:id","Index/edit");
Route::post("/edit_project","Index/edit");
Route::rule("/del_project/:project_id","Index/del");
Route::rule("/detail/:id","Index/detail");

Route::get("/quit_project/:project_id","Index/quit");
Route::get("/search_member","Index/search_member");
Route::get("/add_member","Index/add_member");
Route::get("/remove_member/:project_id/:member_id","Index/remove");

Route::rule("/apilist/:project_id","Api/index");
Route::rule("/apilist","Api/index");
Route::rule("/external/:unique_code","Api/external");
Route::rule("/external","Api/external");

Route::rule("/change_sort","Api/changeSort");
Route::rule("/module","Api/module");
Route::rule("/del_module","Api/delModule");
Route::rule("/add_api","Api/add");
Route::rule("/edit_api","Api/edit");
Route::rule("/copy_api","Api/copy");
Route::rule("/del_api","Api/del");

Route::rule("/profile","Account/profile");
Route::rule("/login","Account/login");
Route::rule("/register","Account/register");
Route::rule("/logout","Account/logout");